package com.sk.cardeal.dialog;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.sk.cardeal.R;
import com.sk.cardeal.base.BaseDialogFragment;
import com.sk.cardeal.callback.MyCallBack;

import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Unbinder;

/**
 * Created by sk on 2017/12/15.
 */

public class OpenFormDialogFragment extends BaseDialogFragment {

    private MyCallBack myCallBack;

    public MyCallBack getMyCallBack() {
        return myCallBack;
    }

    public void setMyCallBack(MyCallBack myCallBack) {
        this.myCallBack = myCallBack;
    }

    @Override
    protected int getContentView() {
        return R.layout.dialog_open_form;
    }


    @OnClick({R.id.beauty_ll, R.id.fix_ll})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.beauty_ll:
                myCallBack.clickView(view.getId());
                dismiss();
                break;
            case R.id.fix_ll:
                myCallBack.clickView(view.getId());
                dismiss();
                break;
        }
    }
}
